import request from '@/plugin/axios'

// 获取申请
export const applyMsgList = data => {
  // return request(`/api/v1/applyMsg?pageNum=${pageNum}&pageSize=${PAGE_SIZE}&${whereStr}`)
  return request({
    url: '/v1/applyMsg',
    method: 'get',
    params: data
  })
}

// 创建申请
export const createApplyMsg = data => {
  console.log(11111)
  return request({
    url: '/v1/applyMsg',
    method: 'post',
    data
  })
}

// 修改申请
export const updateApplyMsg = data => {
  return request({
    url: `/v1/applyMsg/${data.id}`,
    method: 'put',
    data
  })
}

// 删除申请
export const delApplyMsg = data => {
  return request({
    url: `/v1/applyMsg/${data.id}`,
    method: 'delete',
    data
  })
}

// 批量删除申请
export const delAll = data => {
  return request({
    url: `/v1/applyMsg/${data.id[0]}`,
    method: 'delete',
    data
  })
}
